<?php

namespace App\Repository\Repositories\Interfaces;

use Prettus\Repository\Contracts\RepositoryInterface as BaseRepositoryInterface;

/**
 * Interface ActionRepository.
 *
 * @package namespace App\Repository\Repositories\Interfaces;
 */
interface RepositoryInterface extends BaseRepositoryInterface
{
    /**
     * find single data
     * @param array $where
     * @param array $columns
     * @return mixed
     */
    public function whereFirst(array $where, $columns = ['*']);

    /**
     * get column sum
     * @param $column
     * @return mixed
     */
    public function sum($column,$where=[]);

    public function increment($column, $where = []);

    public function updateWhere($attributes, $where = []);
}
